﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AB_SD_Entities
{
    public class Town
    {
        private int id;
        private int countyId;        
        private string name;

        /// <summary>
        /// Get or set Town ID
        /// </summary>
        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        
        /// <summary>
        /// Get or set town name
        /// </summary>
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        
        /// <summary>
        /// Get or set County Id
        /// </summary>
        public int CountyId
        {
            get { return countyId; }
            set { countyId = value; }
        }        
        
        /// <summary>
        /// Construct new Town
        /// </summary>
        public Town()
        {
            id = 0;
            name = "";
            countyId = 0;
        }

        /// <summary>
        /// Construct new Town
        /// </summary>
        /// <param name="townId">town id</param>
        /// <param name="townName">town name</param>
        /// <param name="cId">county Id</param>
        public Town(int townId, string townName, int cId)
        {
            id = townId;
            name = townName;
            countyId = cId;            
        }
    }
}
